<?php
/**
 * $Id$
 * @copyright   Copyright (C) 2010 Danny Buytaert. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPLv2
 * 
 * with this function you can save html to your database
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

class ComBibTableBooks extends KDatabaseTableAbstract
{
        public function filter($data)
        {
                settype($data, 'array'); //force to array

                $data['text'] = KRequest::get('post.text', 'html');
                $this->getField('text')->type='html';

                return parent::filter($data);
        }

} 